package com.kaochong.xcx.dao;

import com.kaochong.xcx.entity.UserStageWords;

import org.springframework.data.repository.query.Param;

public interface UserStageWordsMapper {
	int deleteByPrimaryKey(Long id);
	
	int insert(UserStageWords record);
	
	int insertSelective(UserStageWords record);
	
	UserStageWords selectByPrimaryKey(Long id);
	
	int updateByPrimaryKeySelective(UserStageWords record);
	
	int updateByPrimaryKeyWithBLOBs(UserStageWords record);
	
	int updateByPrimaryKey(UserStageWords record);
	
	/**************************** 自定义方法 ***************************/
	UserStageWords findUserStageWord(@Param("userId") Long userId, @Param("targetMarkId") String
			targetMarkId, @Param("stage") Integer stage);
	
	int deleteUserStage(@Param("userId") Long userId, @Param("targetMarkId") String targetMarkId);
}